package com.spboot.exts.mapper;

import com.spboot.exts.entity.User;

import java.util.List;
import java.util.Set;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author test
 * @since 2019-08-31
 */
public interface UserMapper extends BaseMapper<User> {

	/**
	 * 扩展
	 */

	IPage<User> selectUserPage(IPage<User> paramIPage, @Param("ew") Wrapper<User> paramWrapper);

	/**
	 * 根据用户id查询对应权限code
	 * 
	 * @param id
	 * @return
	 */
	Set<String> selectUserPermission(Long id);
}
